package com.jumi.microservice.service;

import com.jumi.microservice.common.page.TableDataInfo;
import com.jumi.microservice.dto.taobao.*;

import java.util.List;

/**
 * @author Dirk
 * @Date 2021-01-08 08:52
 */
public interface ITaoBaoService {

    /**
     * 根据用户token获取会员运营ID
     *
     * @param sessionKey
     * @return
     */
    Long getSpecialId(String sessionKey);

    /**
     * 用户授权
     *
     * @param oauthRequest
     * @return
     */
    Boolean oauth(OauthRequest oauthRequest);

    /**
     * 用户h5授权
     *
     * @param oauthRequest
     * @return
     */
    Boolean oauthH5(OauthRequest oauthRequest);

    /**
     * 获取选品库列表
     *
     * @return
     */
    List<FavoritesResponse> getFavorites();

    /**
     * 获取选品库商品列表
     *
     * @param materialRequest
     * @return
     */
    TableDataInfo<MaterialResponse> getMaterial(MaterialRequest materialRequest);

    /**
     * 物料搜索
     *
     * @param searchRequest
     * @return
     */
    TableDataInfo<MaterialResponse> searchMaterial(SearchRequest searchRequest);

    /**
     * 商品详情查询
     *
     * @param itemInfoRequest
     * @return
     */
    ItemInfoResponse getItemInfo(ItemInfoRequest itemInfoRequest);

    /**
     * 查询用户淘宝绑定状态
     *
     * @param uid
     * @return
     */
    Long getUserTbSpecialId(Long uid);

    /**
     * 创建淘口令
     *
     * @param pwdRequest
     * @return
     */
    PwdResponse createPwd(PwdRequest pwdRequest);
}
